package Test;

import bean.Hello;
import dao.StudentDaoimpl;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import services.servicesimpl.StudentUntilimpl;
import services.Student;

public class TestMain {
    @Test
    public void getBean(){
        ApplicationContext context = GetApplication.getApplication();
        Hello hello = context.getBean(Hello.class);
        System.out.println(hello.getName());
    }

    public static void main(String[] args) {
        Student student = new StudentUntilimpl();
        student.setPersionDao(new StudentDaoimpl());
        student.getPersionName();
    }
}
